<ModalCard @ref="m1" HeaderText="Modal Title">
    <BodySlot>
        <Content>自定义内容</Content>
    </BodySlot>
    <FootSlot>
        <Button Color="Color.Success">自定义按钮</Button>
        <Button @onclick="() => m1.Close()">Cancel</Button>
    </FootSlot>
</ModalCard>
<Button @onclick="() => m1.Show()">Open</Button>

@code{
    ModalCard m1;
}